package com.duoduo.admin.api.feign.fallback;

import org.springframework.cloud.openfeign.FallbackFactory;

import com.duoduo.admin.api.feign.RemoteParamFeginClient;
import com.duoduo.common.core.util.R;

public class RemoteParamFeginClientFallbackFactory implements FallbackFactory<RemoteParamFeginClient> {

	@Override
	public RemoteParamFeginClient create(Throwable cause) {
		
		return new RemoteParamFeginClient() {

			@Override
			public R<String> getByKey(String key) {
				return R.failed();
			}};
	}

}
